﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/TemplateAdmin.Master" AutoEventWireup="true"
    CodeBehind="ThemDanhMucCon.aspx.cs" Inherits="GreenLife.Admin.ThemDanhMucCon" %>

<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <form id="Form1" runat="server">
    <table width="800px">
        <thead>
            <tr>
                <td width="100px">
                </td>
                <td width="350px">
                </td>
                <td width="350px">
                </td>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>
                    CategoryId:
                </td>
                <td>
                    <asp:DropDownList ID="ddlTower" runat="server" AutoPostBack="true" 
                        onselectedindexchanged="ddlTower_SelectedIndexChanged"><%--
                        <asp:ListItem Text="Tower A" Value="Tower A" Selected="True"></asp:ListItem>
                        <asp:ListItem Text="Tower B" Value="Tower B"></asp:ListItem>--%>
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddlCate" runat="server" AppendDataBoundItems ="true" AutoPostBack ="true"
                        onselectedindexchanged="ddlCate_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    SubCategoryName:
                </td>
                <td>
                    <asp:TextBox ID="txtSubCateName" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Required!"
                        ControlToValidate="txtSubCateName">
                    </asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Image:
                </td>
                <td>
                    <asp:FileUpload ID="FileUploadControl" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    SubCategoryDescription:
                </td>
                <td>
                    <FTB:FreeTextBox ID="txtDescription" runat="server">
                    </FTB:FreeTextBox>
                </td>
            </tr>
            <tr>
                <td>
                    SubCategoryArea:
                </td>
                <td>
                    <asp:TextBox ID="txtSubCateArea" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Required!"
                        ControlToValidate="txtSubCateArea">
                    </asp:RequiredFieldValidator>
                    <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtSubCateArea"
                        MaximumValue="9999" MinimumValue="1" Type="Integer" ErrorMessage="Status có giá trị từ 1-9999" />
                </td>
            </tr>
            <tr>
                <td>
                    SubCategoryHuong:
                </td>
                <td>
                    <asp:TextBox ID="txtSubCateHuong" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Required!"
                        ControlToValidate="txtSubCateHuong">
                    </asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Button ID="btnAdd" runat="server" Text="Add" CausesValidation="true" OnClick="btnAdd_Click" />
                </td>
            </tr>
        </tbody>
    </table>
    </form>
</asp:Content>
